<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script type="module">
  import objDefault2 ,{ aImport, objImport, obj, default as objDefault} from './import.js'
  console.log(aImport, objImport, 'import- 打印',objDefault, '默认',objDefault2)

  // import data from './import.js'
  // // import { defalut as data } './import.js'
  // console.log(data, 'import- 打印')
  // // aImport = 33 只读引用不能修改

  // import * as $ from './import.js'
  // console.log('***', $.aImport)


  // console.log(obj.name)  // 'import export obj'
  //  import { obj } from './import.js'
   // 与export相反，import默认会被提升到模块最顶层
   // 即
  //  import { obj } from './import.js'
  //  console.log(obj.name)
</script>

</html>